package com.wzcl.app.dao.repository;

import com.wzcl.app.dao.model.ActivityFullCutPromotion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ActivityFullCutPromotionRepository extends JpaRepository<ActivityFullCutPromotion,Integer>, JpaSpecificationExecutor<ActivityFullCutPromotion> {

    List<ActivityFullCutPromotion> findAllByActivityIdOrderByOrderNoDesc(Integer activityId);

    void deleteAllByActivityId(Integer activityId);
}
